import axios from '@/api/fetch';
import SERVER from '@/api/server';
//查询信息
export const queryFollowWays = params => axios.get(`${SERVER.CYXDMS_CLUE}/basedata/clueSource`, { params });
//  跟进方式定义跳转编辑页面
// export const queryFollowWaysByid = id => axios.get(`${SERVER.CYXDMS_CLUE}/customerManage/industryCategory/mode/${id}`, { id: Number(id) });
//新增保存
 export const channelSubdvision = params => axios.post(`${SERVER.CYXDMS_CLUE}/basedata/clueSource`, params);
//编辑保存
export const editchannelSubdvision = (params,id) => axios.put(`${SERVER.CYXDMS_CLUE}/basedata/clueSource/${id}`, params);
